home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 012 / quickies.arc / ADDFILES.BAT next >
DOS Batch File  |  1987-03-30  |  640b  |  22 lines

  1. echo off
  2. if "%1" == "" goto :help
  3. Echo Place destination diskette in %1 and
  4. pause
  5. for %%f in (*.*) do if not exist %1\%%f copy %%f %1
  6. goto :done
  7. :help
  8. echo This routine will copy any files in the current drive and
  9. echo directory which do not exist in the destination drive and
  10. echo directory, thereby adding the files to the destination without
  11. echo overwriting any files that already exist.
  12. echo .
  13. echo    Call is:    ADDFILES d:\path   or
  14. echo                ADDFILES d:
  15. echo .
  16. echo   Where d:\path or d: is the destination. 
  17. :done
  18.  
  19. :    ADDFILES d:\path   or
  20. echo                ADDFILES d:
  21. echo .
  22. echo   Where d:\p